-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(0.94.1) Refactor SplitExplicitFreeSurface
#3894
Conversation
Thanks for the comments, I should have addressed all points. |
|
||
Gⁿ⁺¹ = @inbounds C₁ * Gⁿ[i, j, k] - C₂ * G⁻[i, j, k] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gⁿ⁺¹ = @inbounds C₁ * Gⁿ[i, j, k] - C₂ * G⁻[i, j, k] | |
not_euler = C₂ != 0 | |
Gⁿ⁺¹ = @inbounds C₁ * Gⁿ[i, j, k] - C₂ * G⁻[i, j, k] * not_euler |
multiplying by false
eliminates the NaN
(we need this in the other time-stepping code too)
...Models/HydrostaticFreeSurfaceModels/SplitExplicitFreeSurfaces/split_explicit_free_surface.jl
Outdated
Show resolved
Hide resolved
...Models/HydrostaticFreeSurfaceModels/SplitExplicitFreeSurfaces/split_explicit_free_surface.jl
Outdated
Show resolved
Hide resolved
…ces/split_explicit_free_surface.jl Co-authored-by: Gregory L. Wagner <[email protected]>
…ces/split_explicit_free_surface.jl Co-authored-by: Gregory L. Wagner <[email protected]>
I think was merged with a bump to 0.94.1 before 0.94 was registered. How do we fix this? |
we have to merge 0.94 retroactively. But yeah, this should have been merged just as 0.94, not 0.94.1 @simone-silvestri . |
We don't need to fix. It's OK. We move on. |
Oh sorry, my bad! I messed up a bit here. |
refactoring of the
SplitExplicitFreeSurface
to comply with issue #3873Additional changes included in this PR not described in #3873:
Connected
topology (FullyConnected
,RightConnected
orLeftConnected
) so there is no need to extend the constructor for grids (such as distributed grids) that have connected topologies.ExplicitFreeSurface
relevant code has been moved in theexplicit_free_surface.jl
file